//
// Created by wze-zero on 2024/7/17 017.
//
#include <iostream>

using namespace std;

class Array {
private:
    int n;//数组大小
    int *a;//数组
public:
    Array() {
        cin >> n;
        a = new int[n];
        for (int i = 0; i < n; i++) cin >> a[i];
    }

    ~Array() {
        delete[]a;
    }

    int getlen() {
        return n;
    }

    int get(int i) {
        return a[i];
    }

    Array(Array &a) {
        this->n = a.getlen();
        this->a = new int[a.getlen()];
        for (int i = 0; i < a.getlen(); ++i) {
            this->a[i] = a.get(i);
        }
    }

    void show() {
        for (int i = 0; i < n; i++) {
            cout << this->get(i) << ' ';
        }
    }
};

int main() {
    Array a;
    Array b = a;
    b.show();
    return 0;
}